package com.nice.nice201110.mapper;

import com.nice.nice201110.entity.TMenu;
import com.nice.nice201110.vo.MenuVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TMenuMapper {

    int deleteSelective(Integer id);
    int insertSelective(TMenu record);
    TMenu selectByPrimaryKey(Integer id);
    int updateByPrimaryKeySelective(TMenu record);

    List<TMenu> selectByMain(String name,Integer parentid);

    List<TMenu> selectByTmenus(MenuVo menuVo);  //获取该用户有多少权限
}